const express = require("express");
const controller = require("../router_handler/filecontroller.js");
const router = express.Router()
const db = require('../db/index.js')

const VideoList = async (req, res) => {
	const sql = `select * from ev_files where file_type ='mp4'`
	db.query(sql,(err,results)=>{
		if(err)
			return res.cc('err!');
		// console.log(results)
		if(results.length<=0) return res.cc('Failed')
		res.send({
			status: 0,
			message: '获取视频列表成功！',
			data: results,
		})
		
	})
}
module.exports = {
  VideoList
  }